﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminIndexMaster.master" AutoEventWireup="true" CodeFile="Admin_ShopDeliverType.aspx.cs" Inherits="Admin_Admin_ShopDeliverType" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<table class="adminheading">
     <tr>
        <th valign="middle" class="shoppage"  align="left">
            商城物流方式管理</th>                  
        <td align="right"><div style="width:100px">
        <a href="Admin_HowaveUpdatePaytype.aspx?Action=add"></a>
        </div>
        </td>
        <td class="rtdw"></td>
     </tr>
 </table> 
 
<table class="nick">
<tr>
    <td class="ltd">会员帐号</td>
    <td class="rtd" style="width:35%">
    <asp:TextBox ID="TextBox1" runat="server" /></td>
    <td class="ltd">物流名称</td>
    <td class="rtd" style="width:35%">
        <asp:TextBox ID="txtDeliverTypeName" runat="server"></asp:TextBox></td>
</tr>
<tr>
    <td colspan="4" class="btm">
        <asp:Button ID="btn_cearchType" runat="server" OnClick="btn_cearchType_Click" Text="查找" /></td>
</tr>
</table>

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" PageSize="15" 
        CssClass="adminlist" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="TypeID">
        <Columns>
            <asp:BoundField DataField="Typeid" HeaderText="编号" ReadOnly="True" >
                <ItemStyle Width="40px" />
            </asp:BoundField>
            <asp:HyperLinkField DataNavigateUrlFields="TypeID" DataNavigateUrlFormatString="Admin_ShowDeliverType.aspx?TypeID={0}"
                DataTextField="TypeName" HeaderText="名称" />
            <asp:BoundField DataField="UserName" HeaderText="会员帐号">
                <ItemStyle Width="150px" />
            </asp:BoundField>
            <asp:CheckBoxField DataField="isdisabled" HeaderText="禁用" Text="是">
                <ItemStyle Width="50px" />
            </asp:CheckBoxField>
            <asp:CheckBoxField DataField="isdefault" HeaderText="默认" Text="是" ReadOnly="True" >
                <ItemStyle Width="40px" />
            </asp:CheckBoxField>
            <asp:TemplateField HeaderText="描述">
                <ItemTemplate>
                    <asp:Literal runat="server" ID="TxtIntro" Text='<%# Eval("Intro").ToString().Replace("\n","<br/>") %>' />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" />
            </asp:TemplateField>
            <asp:CommandField HeaderText="设为默认" ShowSelectButton="True" SelectText="设为默认" Visible="False">
                <ItemStyle Width="80px" />
            </asp:CommandField>
            <asp:TemplateField HeaderText="删除">
               <ItemTemplate>
                   <asp:LinkButton ID="lb_enable" runat="server" CommandArgument='<%# Eval("TypeID") %>'
                       OnCommand="lb_enable_Command" Text='<%# (bool)Eval("IsDisabled")?"启用":"禁用" %>'></asp:LinkButton>&nbsp;
                   <asp:LinkButton ID="cl" CommandArgument='<%# Eval("TypeID") %>' OnClientClick="if(confirm('确定删除吗？'))return true;return false;" OnCommand="Delete_ButtonClick" runat="server" Text="删除" />
               </ItemTemplate>
                <ItemStyle Width="100px" />
            </asp:TemplateField>
        </Columns>
         <EmptyDataTemplate >                   
                 <tr>                                 
                     <th>编号</th>
                     <th>名称</th>                 
                     <th>折扣</th>
                     <th>禁用</th>  
                     <th>默认</th>
                     <th>描述</th>                 
                     <th>修改</th>
                     <th>收货人</th> 
                     <th>设为默认</th>
                     <th>删除</th>                           
                 </tr>
                 <tr><td colspan="10" style="text-align:center">暂无信息！</td></tr>            
            </EmptyDataTemplate> 
    </asp:GridView>
    <div class="page">
    <asp:Label ID="PagePanel" runat="server" />
    </div>
</asp:Content>

